# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=oguri
pkgver=0_git20201219
pkgrel=1
_commit="6937fee10a9b0ef3ad8f94f606c0e0d9e7dec564"
pkgdesc="Wallpaper daemon for Wayland compositors"
url="https://github.com/vilhalmer/oguri"
license="MIT"
arch="all"
options="!check" # no test suite
makedepends="meson cairo-dev gdk-pixbuf-dev wayland-dev wayland-protocols"
source="https://github.com/vilhalmer/oguri/archive/$_commit/oguri-$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm755 contrib/oguri-swaybg -t "$pkgdir"/usr/bin
}

sha512sums="
e9248831967aaa2e46cb37afe765dfee107dd690ca9a79b7cc8a4a19c1b8d6c15ee5be3af9d3814b1a7b8ad749914262bdc9b2f1b63cbe0b0f6dce604544afb8  oguri-6937fee10a9b0ef3ad8f94f606c0e0d9e7dec564.tar.gz
"
